package com.linkstec.musiccloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linkstec.musiccloud.mapper.CommentMapper;
import com.linkstec.musiccloud.pojo.Comment;
import com.linkstec.musiccloud.service.CommentService;
import com.linkstec.musiccloud.vo.CommentVo;
@Service
public class CommentServiceImpl implements CommentService{
	
	@Autowired
	private CommentMapper commentMapper;

	@Override
	public Comment addComment(Comment comment) {
		return commentMapper.addComment(comment);
	}

	@Override
	public List<CommentVo> selectAllComment(int songId) {
		return commentMapper.selectAllComment(songId);
	}

	@Override
	public int selectCounts(int songId) {
		return commentMapper.selectCounts(songId);
	}

}
